package pojo;

import java.util.Date;

/**
 * @author wq3stone
 */
public class Knowledge {
    private Integer id;
    private Integer uid;
    private String title;
    private String category;
    private String keyword;
    private String content;
    private Date date;

    public Knowledge() {
    }

    @Override
    public String toString() {
        return "Knowledge{" +
                "id=" + id +
                ", uid=" + uid +
                ", title='" + title + '\'' +
                ", category='" + category + '\'' +
                ", keyword='" + keyword + '\'' +
                ", content='" + content + '\'' +
                ", date=" + date +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Knowledge(Integer uid, String title, String category, String keyword, String content, Date date) {
        this.uid = uid;
        this.title = title;
        this.category = category;
        this.keyword = keyword;
        this.content = content;
        this.date = date;
    }

    public Knowledge(Integer id, Integer uid, String title, String category, String keyword, String content, Date date) {
        this.id = id;
        this.uid = uid;
        this.title = title;
        this.category = category;
        this.keyword = keyword;
        this.content = content;
        this.date = date;
    }
}
